package com.seleniti.enpareja.web.desktop.client.ui.view;

import org.ioc.commons.impl.gwt.client.ui.ViewComposite;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Widget;
import com.seleniti.enpareja.controller.ui.view.GettingStartedView;
import com.seleniti.enpareja.controller.ui.view.GettingStartedView.Action;
import com.seleniti.enpareja.controller.ui.view.GettingStartedView.Event;
import com.seleniti.enpareja.controller.ui.view.GettingStartedView.Operation;
import com.seleniti.enpareja.controller.ui.view.GettingStartedView.Presenter;
import com.seleniti.enpareja.controller.ui.view.GettingStartedViewPresenter;

public class GettingStartedViewWidget extends EnParejaBaseView<Event, Operation, Action, Presenter> implements
		GettingStartedView {

	private static GettingStartedViewWidgetUiBinder uiBinder = GWT.create(GettingStartedViewWidgetUiBinder.class);

	interface GettingStartedViewWidgetUiBinder extends UiBinder<Widget, GettingStartedViewWidget> {
	}

	public GettingStartedViewWidget() {
		;
		this.presenter = new GettingStartedViewPresenter(this, eventbus, operationManager, actionController);
		initWidget(uiBinder.createAndBindUi(this));
	}

	@UiHandler("btnLetsStart")
	void onLetsStartButtonClicked(ClickEvent evt) {
		this.presenter.onLetsStart();
	}

}
